package com.example.constant;

public enum ResponseCode {
    SUCCESS("0000", "成功"),
    FAIL("9000", "失败"),
    SYSEXCEPTION("9999", "系统异常"),
    LOCK_FAIL("9001", "获取锁失败");

    private String code;
    private String message;

    ResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
